//Route
import { createRouter, createWebHistory } from "vue-router";
import {routes} from "./routes";
import {beforeEach,afterEach} from './guard'
export const Router = createRouter({
  history: createWebHistory(),
  routes,
  scrollBehavior: () => ({top: 0})
});
//全局守卫
Router.beforeEach(beforeEach);
Router.afterEach(afterEach);